package com.googlecode.quillen.domain;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: greg
 * Date: Dec 22, 2008
 * Time: 12:30:55 PM
 */
public class Snapshot implements Comparable<Snapshot>
{
    private String name;
    private Date date;
    private int files;
    private long size;

    public Snapshot(String name, Date date, int files, long size)
    {
        this.name = name;
        this.date = date;
        this.files = files;
        this.size = size;
    }

    public String getName()
    {
        return name;
    }

    public Date getDate()
    {
        return date;
    }

    public int getFiles()
    {
        return files;
    }

    public long getSize()
    {
        return size;
    }

    public int compareTo(Snapshot snapshot)
    {
        return date.compareTo(snapshot.date);
    }
}
